﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="zmag_list.aspx.cs" Inherits="system_zmag_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>最新赠刊名录</title>
    <style type="text/css">
        body{
            font-size:11pt;
        }
        td{
            font-size:10pt;
        }
    </style>
	<script type="text/javascript" src="../jquery/126/jquery-1.2.6.js"></script>    <script type="text/javascript">
        function genxlsfile()
        {
	        $.ajax({	            url:'zmag_list_xls.aspx?magname='+escape($("#magname").val())+'&maglvl='+escape($("#maglvl").val())+'&magdept='+escape($("#magdept").val())+'&magcity='+escape($("#magcity").val())+'&_='+(new Date()).getTime(),	            type:'get',	            dataType:'html',	            beforeSend:function()	            {	                $("#xlsfile").empty().append("<img id='loading' src='../images/loading2.gif' />");	            },	            error:function()	            {	                $("#xlsfile").empty().append("error!");	            },	            success: function(msg)	            {	                $("#xlsfile").empty().append(msg);	            }	        });        };
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="98%">
            <tr>
                <td width="100%">期刊名称：
                    <asp:DropDownList ID="magname" runat="server" Width="110px">
                        <asp:ListItem Selected="True" Value="none">选择期刊...</asp:ListItem>
                        <asp:ListItem>汽车画报</asp:ListItem>
                        <asp:ListItem>动感驾驭</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="maglvl" runat="server" Width="110px">
                        <asp:ListItem Selected="True" Value="none">选择级别...</asp:ListItem>
                        <asp:ListItem>VIP</asp:ListItem>
                        <asp:ListItem>普通</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="magdept" runat="server" Width="110px">
                        <asp:ListItem Selected="True" Value="none">选择部门...</asp:ListItem>
                        <asp:ListItem>全部</asp:ListItem>
                        <asp:ListItem>汽车画报=广告部</asp:ListItem>
                        <asp:ListItem>汽车画报=编辑部</asp:ListItem>
                        <asp:ListItem>汽车画报=发行部</asp:ListItem>
                        <asp:ListItem>汽车画报=行政部</asp:ListItem>
                        <asp:ListItem>动感驾驭=广告部</asp:ListItem>
                        <asp:ListItem>动感驾驭=编辑部</asp:ListItem>
                        <asp:ListItem>动感驾驭=发行部</asp:ListItem>
                        <asp:ListItem>动感驾驭=行政部</asp:ListItem>
                    </asp:DropDownList>
                    <asp:DropDownList ID="magcity" runat="server" Width="110px">
                        <asp:ListItem Selected="True" Value="none">选择城市...</asp:ListItem>
                        <asp:ListItem>全部</asp:ListItem>
                        <asp:ListItem>北京</asp:ListItem>
                        <asp:ListItem>非北京</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Button ID="btnRun" runat="server" Text="生成当前名录" Width="100px" OnClick="btnRun_Click" />
                    <input type="button" value="保存结果" onclick="genxlsfile()" />
                    <span id="xlsfile"></span>
                </td>
            </tr>
            <tr>
                <td width="100%"><div id="manlist" runat="server"></div></td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
